#ifndef __TEXTURE_H__
#define __TEXTURE_H__

#include <d3d9.h>
#include <d3dx9.h>

//#include "Global.h"
#include "Trace.h"


/**--------------------------------------------------------
*Program/Project : GameMario
*Written by : 
*Email :
*Created date : 7/10/2012
*Modified by :
*Modified date :
*Version : 1.0
*Description : Lop khoi tao Texture
--------------------------------------------------------**/
class Texture
{
public:
	LPDIRECT3DDEVICE9 d3ddv;			//Direct3D device
	LPWSTR fileName;
	LPDIRECT3DTEXTURE9 texture;
	D3DCOLOR transcolor;

	int _Cols;			// Number of sprites per row
	int _Rows;
	int _Count;			// Number of sprites

	int _Width;			// Sprite width
	int _Height;		// Sprite height

public:
	Texture(LPDIRECT3DDEVICE9 D3ddv, LPWSTR FileName, int Cols, int Rows, int Count, D3DCOLOR Transcolor);
	~Texture();
	LPDIRECT3DTEXTURE9 Get_Texture();
	void Load();
};
#endif